<template lang="">
    <div>
        <table>
            <tr>
                <td>账号</td><td><input v-model="form.login" type="text"></td>
            </tr>
            <tr>
                <td>密码</td><td><input v-model="form.psd" type="password"></td>
            </tr>
            <tr>
                <td>验证码</td><td><input v-model="form.code" type="text"></td>
            </tr>
        </table>
        <button @click="submmit">登录</button>
    </div>
</template>
<script setup lang="ts">
import { reactive,onActivated,onDeactivated,onMounted,onUnmounted } from 'vue';
const form = reactive({
    login: "",
    psd: "",
    code:""
})

const submmit = () => {
    console.log(form);
}

onActivated(()=>{
    form.code=''
})
</script>





<style lang="">
    
</style>